package com.tuanzi.loan.business.entity.product.prefilter;

import cn.tuanzidai.loan.product.client.vo.LoanProductPrefilterRule;
import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;

/**
 * @author Ray 2017/10/14
 */
@Data
@Entity
@Table(name = "LOAN_PRODUCT_PREFILTER")
@EqualsAndHashCode(callSuper = true)
public class LoanProductPrefilter extends AuditEntity {

	private static final long serialVersionUID = 2538544627440717868L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@NotBlank
	private String name;

	@Column(name = "rule")
	private String rule;

	@Transient
	private LoanProductPrefilterRule productPrefilter;

}
